package com.maxbill.base.bean;

import lombok.Data;

/**
 * 树实体
 *
 * @author MaxBill
 * @date 2019/07/06
 */

@Data
public class TreeBean {

    private String id;

    private String name;

    private String type;

    public TreeBean(String id, String name) {
        this.id = id;
        this.name = name;
    }

    public TreeBean(Connect connect) {
        this.id = connect.getId();
        this.name = connect.getText();
    }

    @Override
    public String toString() {
        return name;
    }

}
